.class public Lrexsee/opengl/RexseeGL;
.super Ljava/lang/Object;
.source "RexseeGL.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field public static final EVENT_ON3DCANVASWKEYDOWN:Ljava/lang/String; = "on3DCanvasKeyDown"

.field private static final INTERFACE_NAME:Ljava/lang/String; = "GL"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private mDialog:Lrexsee/opengl/GLDialog;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 2
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 28
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/opengl/RexseeGL;->mDialog:Lrexsee/opengl/GLDialog;

    .line 29
    iput-object p1, p0, Lrexsee/opengl/RexseeGL;->mBrowser:Lrexsee/core/browser/Browser;

    .line 30
    iget-object v0, p0, Lrexsee/opengl/RexseeGL;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "on3DCanvasKeyDown"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 31
    return-void
.end method

.method static synthetic access$0(Lrexsee/opengl/RexseeGL;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 25
    iget-object v0, p0, Lrexsee/opengl/RexseeGL;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public dismissDialog()V
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lrexsee/opengl/RexseeGL;->mDialog:Lrexsee/opengl/GLDialog;

    if-eqz v0, :cond_0

    .line 48
    iget-object v0, p0, Lrexsee/opengl/RexseeGL;->mDialog:Lrexsee/opengl/GLDialog;

    invoke-virtual {v0}, Lrexsee/opengl/GLDialog;->dismiss()V

    .line 49
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/opengl/RexseeGL;->mDialog:Lrexsee/opengl/GLDialog;

    .line 51
    :cond_0
    return-void
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 16
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 12
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/opengl/RexseeGL;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "GL"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 20
    return-object p0
.end method

.method public showDialog(Ljava/lang/String;)V
    .locals 2
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    .line 38
    new-instance v0, Lrexsee/opengl/GLDialog;

    iget-object v1, p0, Lrexsee/opengl/RexseeGL;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-direct {v0, v1, p1}, Lrexsee/opengl/GLDialog;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;)V

    iput-object v0, p0, Lrexsee/opengl/RexseeGL;->mDialog:Lrexsee/opengl/GLDialog;

    .line 39
    iget-object v0, p0, Lrexsee/opengl/RexseeGL;->mDialog:Lrexsee/opengl/GLDialog;

    new-instance v1, Lrexsee/opengl/RexseeGL$1;

    invoke-direct {v1, p0}, Lrexsee/opengl/RexseeGL$1;-><init>(Lrexsee/opengl/RexseeGL;)V

    invoke-virtual {v0, v1}, Lrexsee/opengl/GLDialog;->start(Lrexsee/opengl/GLDialog$On3DCanvasPreviewKeyDown;)V

    .line 45
    return-void
.end method

.method public test()Ljava/lang/String;
    .locals 1

    .prologue
    .line 35
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
